﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace CarbonExchange.Tests
{
    [TestClass]
    public class TestDalStrucure
    {
        [TestInitialize]
        public void Init()
        {
            if(this.Context == null)
                this.Context = new CarbonExchange.Dal.Context();
        }

        private Dal.Context Context{get;set;}

        [TestMethod]
        public void AcmsSitesTest()
        {
            var tmp = Context.AcmsSites.ToArray();
        }

        [TestMethod]
        public void AcmsUserCustomPropertiesTest()
        {
            var tmp = Context.AcmsUserCustomProperties.ToArray();
        }

        [TestMethod]
        public void AcmsUserLoginKeysTest()
        {
            var tmp = Context.AcmsUserLoginKeys.ToArray();
        }

        [TestMethod]
        public void AcmsUsersTest()
        {
            var tmp = Context.AcmsUsers.ToArray();
        }

        [TestMethod]
        public void AnswerItemsTest()
        {
            var tmp = Context.AnswerItems.ToArray();
        }

        [TestMethod]
        public void AnswersTest()
        {
            var tmp = Context.Answers.ToArray();
        }

        [TestMethod]
        public void AuditsTest()
        {
            var tmp = Context.Audits.ToArray();
        }

        [TestMethod]
        public void CommitmentsTest()
        {
            var tmp = Context.Commitments.ToArray();
        }

        [TestMethod]
        public void CountriesTest()
        {
            var tmp = Context.Countries.ToArray();
        }
        [TestMethod]
        public void EmailRestrictionsTest()
        {
            var tmp = Context.EmailRestrictions.ToArray();
        }

        [TestMethod]
        public void PledgeCategoriesTest()
        {
            var tmp = Context.PledgeCategories.ToArray();
        }

        [TestMethod]
        public void PledgesTest()
        {
            var tmp = Context.Pledges.ToArray();
        }

        [TestMethod]
        public void QuestionsTest()
        {
            var tmp = Context.Questions.ToArray();
        }

        [TestMethod]
        public void QuestionTextsTest()
        {
            var tmp = Context.QuestionTexts.ToArray();
        }

        [TestMethod]
        public void SectionsTest()
        {
            var tmp = Context.Sections.ToArray();
        }

        [TestMethod]
        public void UserSectionsTest()
        {
            var tmp = Context.UserSections.ToArray();
        }
    }
}
